package ooday03;
//员工类
public abstract class Staff {
    /*
    String name;
    int age;
    double salary;

    Staff(String name,int age,double salary){
        this.name = name;
        this.age = age;
        this.salary = salary;

    }
    void clockIn(){
        System.out.println(name+"上班打卡...");
    }
    void clockOut(){
        System.out.println(name+"下班打卡...");
    }
    abstract void finishWork();

     */
    String name;
    int age;
    double salary;

    Staff(String name,int age,double salary){
        this.name = name;
        this.age = age;
        this.salary = salary;

    }
    void clockIn(){
        System.out.println(name+"上班打卡...");
    }
    void clockOut(){
        System.out.println(name+"下班打卡...");
    }
    abstract void finishWork();

}
